<template>
	<view>
		<view>
			<button type="primary" @click="sendRequet">发送请求</button>
		</view>
		<view v-for="item in studentInfo">
			id:{{item.id}} 
			姓名：{{item.username}}
			地址：{{item.useraddress}}
			电话：{{item.usertel}}
		</view>
		<view>
			<text selectable="true" user-select="true">这是一个文本组件</text>
		
		</view>
		<view>		
			<text space="emsp">你好 小程序</text>
		</view>
		<view>		
			<text space="nbsp">你好 小程序</text>			
		</view>
		<view>			
			<text space="ensp">你好 小程序</text>
		</view>
		<view>
			<!-- <text space="ensp" decode="true">&nbsp; &lt; &gt; &amp; &apos; &ensp; &emsp;&times;</text> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				studentInfo:[]
			}
		},
		methods: {
			sendRequet(){
				var that=this
				uni.request({
					url:"http://localhost:8086/qst_springbootvue20220217/getUserInfoes",
					data:{
						pageNum:1,
						pageSize:5
					},
					success(res) {
						console.log(res)
						that.studentInfo=res.data.list
					}
				})
			}
		}
	}
</script>

<style>

</style>
